<?php


namespace app\index\controller;

use app\common\model\PageCate as PC;
use think\facade\Request;
use think\facade\View;

class Page extends Base
{
    public function index(){
        $page_id = Request::param('page_id','0','intval');
        $template = PC::where('id',$page_id)->find();

        return View::fetch('./Template/default/html/'.$template['template_list']);
    }
}